﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;

namespace TLSharp
{
    public class GetUserProfileResponse
    {
        public string MessageType = "";
        public string Username = "";
        public string FirstName = "";
        public string LastName = "";
        public string City = "";
        public string State = "";
        public string Country = "";
        public double LastGeoLong;
        public double LastGeoLat;
        public string OwnedTeam;
        //for errors;
        public int ErrorCode = -1;
        public string UserMessage;

        public Team OwnedTeamObject
        {
            get
            {
                return (Team)(new JsonSerializer()).Deserialize(new JsonTokenReader( new JObject(OwnedTeam)), typeof(Team));
            }
        }
    }
}
